<?php
/**
 * The html template file of index method of index module of zentaoPHP.
 *
 * The author disclaims copyright to this source code.  In place of
 * a legal notice, here is a blessing:
 *
 *  May you do good and not evil.
 *  May you find forgiveness for yourself and forgive others.
 *  May you share freely, never taking more than you give.
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php
js::import($webRoot.'module/user/js/jquery.js');
js::import($webRoot.'module/user/js/zui.min.js');
js::import($webRoot.'module/user/js/zui.chart.min.js');?>
<style>
  .table-bordered td, .table-bordered th {
    border: 1px solid #989090 ! important;
  }
  .table>thead>tr>th{
    border: 1px solid #989090 ! important;
  }
  .panel{border: 1px solid #989090 ! important;}
  .yuef .caret{display: none;}
</style>
<div class="panel">
  <div class="panel-heading text-center">
    <strong>
      <?php echo $time.$cname;?>
      监督考评情况统计表
    </strong>
  </div>
  <table class="table table-data table-bordered text-center table-fixedHeader">
    <thead>
    <tr class="text-center">
      <th rowspan="2">人员</th>
      <th colspan="<?php echo (count($category)+1);?>">扣分项目</th>
    </tr>
    <tr class="text-center">
      <th>小计</th>
      <?php foreach($category as $val) :?>
        <th><?php echo $val->mistake;?></th>
      <?php endforeach ?>
    </tr>
    </thead>
    <tbody>
    <?php foreach($users as $uval):?>
      <tr>
        <td><?php echo $uval->name;?></td>
        <td>
          <?php if($uval->scale):?>
            <?php echo html::a($this->createLink('statistics', 'qxingqing', "idcard={$uval->id_card}"),$uval->scale,"","data-toggle='modal' class='model'") ;?>
          <?php endif?>
        </td>
        <?php for($i=1;$i<=$uval->count;$i++):?>
          <td>
            <?php if($uval->$i):?>
              <?php $bid = 'bid'.$i;?>
              <?php echo html::a($this->createLink('statistics', 'ptype', "idcard={$uval->id_card}&bid={$uval->$bid}"),$uval->$i,"","data-toggle='modal' class='model'") ;?>
            <?php endif?>
          </td>
        <?php endfor?>
      </tr>
    <?php endforeach?>

    </tbody></table>
</div>
<?php include '../../common/view/footer.html.php';?>
